package com.four.seckill.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.four.seckill.entity.Allocation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.four.seckill.vo.Allocation2Vo;
import com.four.seckill.vo.AllocationVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gs
 * @since 2021-12-19
 */
public interface IAllocationService extends IService<Allocation> {

    /**
     * 列表分页模糊
     * @param page
     * @param pageSize
     * @param vo
     * @return
     */
    IPage<Allocation> findAll(Integer page, Integer pageSize, AllocationVo vo);

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(Integer id);

    /**
     * 添加秒杀配置
     * @param vo
     */
    void addAll(Allocation2Vo vo);

    /**
     * 修改秒杀配置
     * @param vo
     */
    void updateAllocation(Allocation2Vo vo);

}
